package com.itheima.test01;

public class Test01 {
    public static void main(String[] args) {
        Person person = new Person("老王", 30);
        Dog dog =new Dog();
        dog.setAge(2);
        dog.setColor("黑颜色");
        person.keepPet(dog,"骨头");


        Person person1 = new Person("老李", 25);
        Cat cat = new Cat();
        cat.setAge(3);
        cat.setColor("灰颜色");
        person1.keepPet(cat,"猫咪");

    }
}
